﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
</head>
<body>
    <div class="page">
        <div id="header">
            <div id="title">
                <h1>EzyGoEzy</h1>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
            <div id="menucontainer">
                <ul id="menu">
                    @if (((EzyGoEzySystem.Models.Account)HttpContext.Current.Session["Account"]) != null)
                    {
                        EzyGoEzySystem.Models.Account account = (EzyGoEzySystem.Models.Account)HttpContext.Current.Session["Account"];
                        if (account.IsAdmin)
                        {
                            <li>@Html.ActionLink("Home", "Index", "Home")</li>
                            <li>@Html.ActionLink("About", "About", "Home")</li>
                            <li>@Html.ActionLink("AdminNotification", "Index", "AdminNotification")</li>
                            <li>@Html.ActionLink("AdminConfiguration", "Index", "AdminConfiguration")</li>
                        }
                        else
                        {
                            <li>@Html.ActionLink("Home", "Index", "Home")</li>
                            <li>@Html.ActionLink("About", "About", "Home")</li>
                            <li>@Html.ActionLink("Profile", "Index", "Profile")</li>
                            <li>@Html.ActionLink("Payment", "Pay", "Payment")</li>
                            <li>@Html.ActionLink("Summary", "Index", "Summary")</li>
                            <li>@Html.ActionLink("RouteSuggest", "Find", "RouteSuggest")</li>
                            <li>@Html.ActionLink("Map", "Index", "Map")</li>
                            <li>@Html.ActionLink("TrafficInfo", "Index", "TrafficNotification")</li>
                        }
                    }
                    else
                    {
                        <li>@Html.ActionLink("Home", "Index", "Home")</li>
                        <li>@Html.ActionLink("About", "About", "Home")</li>
                        <li>@Html.ActionLink("Register", "Index", "Register")</li>
                        <li>@Html.ActionLink("RouteSuggest", "Find", "RouteSuggest")</li>
                        <li>@Html.ActionLink("Map", "Index", "Map")</li>
                        <li>@Html.ActionLink("TrafficInfo", "Index", "TrafficNotification")</li>
                    }
                </ul>
            </div>
        </div>
        <div id="main">
            @RenderBody()
        </div>
        <div id="footer">
        </div>
    </div>
</body>
</html>
